package cn.autowired.exam.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 学生和试卷映射表
 * </p>
 *

 */
@TableName("exam_student_paper")
public class StudentPaper extends Model<StudentPaper> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 学号
     */
	private String studentNo;
    /**
     * 试卷号
     */
	private Integer paperId;
    /**
     * 0未完成,1已完成
     */
	private Integer isDone;
    /**
     * 分数
     */
	private Integer score;
    /**
     * 教师评语
     */
	private String comment;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getStudentNo() {
		return studentNo;
	}

	public void setStudentNo(String studentNo) {
		this.studentNo = studentNo;
	}

	public Integer getPaperId() {
		return paperId;
	}

	public void setPaperId(Integer paperId) {
		this.paperId = paperId;
	}

	public Integer getIsDone() {
		return isDone;
	}

	public void setIsDone(Integer isDone) {
		this.isDone = isDone;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

public static interface Field{
		String id = "id";
		String studentNo = "studentNo";
		String paperId = "paperId";
		String isDone = "isDone";
		String score = "score";
		String comment = "comment";
	}
}
